package com.ruoyi.standingbook.lamp.mapper;

import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.standingbook.lamp.domain.Lamp;
import com.ruoyi.standingbook.lamp.domain.bo.LampPicBo;
import com.ruoyi.standingbook.lamp.domain.vo.LampVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 路灯管养任务完成进度Mapper接口
 *
 * @author cc
 * @date 2023-08-29
 */
public interface LampMapper extends BaseMapperPlus<LampMapper, Lamp, LampVo> {

    List<LampPicBo> selectPicByDate(@Param("date") String date);

    /**
     * 统计指点日期的杆数
     *
     * @param date
     * @param community
     * @return
     */
    Integer selectSumByDate(@Param("date") String date, @Param("community") String community,
                            @Param("status")String status);
}
